package com.josework.springhelloworld.model.factory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class Loan implements Product{
    private String name = "loan";

    private Integer weight;

    private Integer height;

    public Loan(Integer height,Integer weight,String name){
        this.height = height;
        this.weight = weight;
        this.name = name;

    }

    @Override
    public void printName() {
        System.out.println("name: "+this.name+" weight: "+this.weight+" height: "+this.height);
    }
}
